﻿using System;

namespace FileStorage.Provider
{
    /// <summary>
    /// 文件元数据
    /// </summary>
    public sealed class FileMetadata
    {
        /// <summary>
        /// 元数据版本
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 文件原始名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Extension { get; set; }

        /// <summary>
        /// 所属客户端
        /// </summary>
        public string Client { get; set; }
        
        /// <summary>
        /// 有效期（天），0为长期有效
        /// </summary>
        public int TTL { get; set; }

        /// <summary>
        /// 是否公开
        /// </summary>
        public bool Public { get; set; }

        /// <summary>
        /// 缩略图
        /// </summary>
        public string[] Thumbnails { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTimeOffset CreateTime { get; set; }
    }
}